<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>8.1 部署Tornado | 引言</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    
    <link rel="prev" href="../c08/index.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="8.1"
        data-chapter-title="8.1 部署Tornado"
        data-filepath="c08/s01.md"
        data-basepath=".."
        data-revision="Fri Feb 10 2017 17:36:30 GMT+0800 (CST)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        引言
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="c01/index.html">
            
                
                    <a href="../c01/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        1 关于Tornado
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="c01/s01.html">
            
                
                    <a href="../c01/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        1.1 Tornado是为何物
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="c01/s02.html">
            
                
                    <a href="../c01/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        1.2 Tornado与Django
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="c02/index.html">
            
                
                    <a href="../c02/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        2 初识Tornado
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="c02/s01.html">
            
                
                    <a href="../c02/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        2.1 安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="c02/s02.html">
            
                
                    <a href="../c02/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        2.2 Hello Itcast
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="c02/s03.html">
            
                
                    <a href="../c02/s03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        2.3 httpserver
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="c02/s04.html">
            
                
                    <a href="../c02/s04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        2.4 options
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="c02/s05.html">
            
                
                    <a href="../c02/s05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        2.5 练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="c03/index.html">
            
                
                    <a href="../c03/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        3 深入Tornado
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="c03/s01.html">
            
                
                    <a href="../c03/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        3.1 Application
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="c03/s02.html">
            
                
                    <a href="../c03/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        3.2 输入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="c03/s03.html">
            
                
                    <a href="../c03/s03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        3.3 输出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="c03/s04.html">
            
                
                    <a href="../c03/s04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        3.4 接口与调用顺序
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="c03/s05.html">
            
                
                    <a href="../c03/s05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        3.5 练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="c04/index.html">
            
                
                    <a href="../c04/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        4 模板
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="c04/s01.html">
            
                
                    <a href="../c04/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        4.1 静态文件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="c04/s02.html">
            
                
                    <a href="../c04/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        4.2 使用模板
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="c04/s03.html">
            
                
                    <a href="../c04/s03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        4.3 练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="c05/index.html">
            
                
                    <a href="../c05/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        5 数据库
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="c05/s01.html">
            
                
                    <a href="../c05/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        5.1 数据库
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="c05/s02.html">
            
                
                    <a href="../c05/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        5.2 练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="c06/index.html">
            
                
                    <a href="../c06/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        6 安全应用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="c06/s01.html">
            
                
                    <a href="../c06/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        6.1 Cookie
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="c06/s02.html">
            
                
                    <a href="../c06/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.2.</b>
                        
                        6.2 XSRF
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="c06/s03.html">
            
                
                    <a href="../c06/s03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.3.</b>
                        
                        6.3 用户验证
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="c06/s04.html">
            
                
                    <a href="../c06/s04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.4.</b>
                        
                        6.4 练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="c07/index.html">
            
                
                    <a href="../c07/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        7 异步与WebSocket
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="c07/s01.html">
            
                
                    <a href="../c07/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        7.1 认识异步
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="c07/s02.html">
            
                
                    <a href="../c07/s02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        7.2 Tornado异步
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="c07/s03.html">
            
                
                    <a href="../c07/s03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        7.3 WebSocket
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="c07/s04.html">
            
                
                    <a href="../c07/s04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        7.4 练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="8" data-path="c08/index.html">
            
                
                    <a href="../c08/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        8 部署
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="8.1" data-path="c08/s01.html">
            
                
                    <a href="../c08/s01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.1.</b>
                        
                        8.1 部署Tornado
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >引言</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="81-&#x90E8;&#x7F72;tornado">8.1 &#x90E8;&#x7F72;Tornado</h1>
<p>&#x4E3A;&#x4E86;&#x5145;&#x5206;&#x5229;&#x7528;&#x591A;&#x6838;CPU&#xFF0C;&#x5E76;&#x4E14;&#x4E3A;&#x4E86;&#x51CF;&#x5C11;&#x540C;&#x6B65;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x963B;&#x585E;&#x5F71;&#x54CD;&#xFF0C;&#x5728;&#x90E8;&#x7F72;Tornado&#x7684;&#x65F6;&#x5019;&#x9700;&#x8981;&#x5F00;&#x542F;&#x591A;&#x4E2A;&#x8FDB;&#x7A0B;&#xFF08;&#x6700;&#x597D;&#x4E3A;&#x6BCF;&#x4E2A;CPU&#x6838;&#x5FC3;&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#xFF09;</p>
<p>&#x56E0;&#x4E3A;Tornado&#x81EA;&#x5E26;&#x7684;&#x670D;&#x52A1;&#x5668;&#x6027;&#x80FD;&#x5F88;&#x9AD8;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x5F00;&#x542F;&#x591A;&#x4E2A;Tornado&#x8FDB;&#x7A0B;&#x3002;&#x4E3A;&#x4E86;&#x5BF9;&#x5916;&#x6709;&#x7EDF;&#x4E00;&#x7684;&#x63A5;&#x53E3;&#xFF0C;&#x5E76;&#x4E14;&#x53EF;&#x4EE5;&#x5206;&#x53D1;&#x7528;&#x6237;&#x7684;&#x8BF7;&#x6C42;&#x5230;&#x4E0D;&#x540C;&#x7684;Tornado&#x8FDB;&#x7A0B;&#x4E0A;&#xFF0C;&#x6211;&#x4EEC;&#x7528;Nginx&#x6765;&#x8FDB;&#x884C;&#x4EE3;&#x7406;&#x3002;</p>
<p><img src="../images/nginx_tornadoes.jpg" alt="&#x90E8;&#x7F72;&#x65B9;&#x6848;"></p>
<h2 id="1-supervisor">1. supervisor</h2>
<p>&#x4E3A;&#x4E86;&#x7EDF;&#x4E00;&#x7BA1;&#x7406;Tornado&#x7684;&#x591A;&#x4E2A;&#x8FDB;&#x7A0B;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x501F;&#x52A9;supervisor&#x5DE5;&#x5177;&#x3002;</p>
<h3 id="&#x5B89;&#x88C5;">&#x5B89;&#x88C5;</h3>
<pre><code class="lang-bash">sudo pip install supervisor
</code></pre>
<h3 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h3>
<p>&#x8FD0;&#x884C;<strong>echo_supervisord_conf</strong>&#x547D;&#x4EE4;&#x8F93;&#x51FA;&#x9ED8;&#x8BA4;&#x7684;&#x914D;&#x7F6E;&#x9879;&#xFF0C;&#x53EF;&#x4EE5;&#x5982;&#x4E0B;&#x64CD;&#x4F5C;&#x5C06;&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x4FDD;&#x5B58;&#x5230;&#x6587;&#x4EF6;&#x4E2D;</p>
<pre><code class="lang-bash"><span class="hljs-built_in">echo</span>_supervisord_conf &gt; supervisord.conf
</code></pre>
<p>vim &#x6253;&#x5F00;&#x7F16;&#x8F91;supervisord.conf&#x6587;&#x4EF6;&#xFF0C;&#x4FEE;&#x6539;</p>
<pre><code class="lang-bash">[include]
files = relative/directory/*.ini
</code></pre>
<p>&#x4E3A;</p>
<pre><code class="lang-bash">[include]
files = /etc/supervisor/*.conf
</code></pre>
<p>include&#x9009;&#x9879;&#x6307;&#x660E;&#x5305;&#x542B;&#x7684;&#x5176;&#x4ED6;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x5C06;&#x7F16;&#x8F91;&#x540E;&#x7684;supervisord.conf&#x6587;&#x4EF6;&#x590D;&#x5236;&#x5230;/etc/&#x76EE;&#x5F55;&#x4E0B;</p>
<pre><code class="lang-bash">sudo cp supervisord.conf /etc/
</code></pre>
<p>&#x7136;&#x540E;&#x6211;&#x4EEC;&#x5728;/etc&#x76EE;&#x5F55;&#x4E0B;&#x65B0;&#x5EFA;&#x5B50;&#x76EE;&#x5F55;supervisor&#xFF08;&#x4E0E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x91CC;&#x7684;&#x9009;&#x9879;&#x76F8;&#x540C;&#xFF09;&#xFF0C;&#x5E76;&#x5728;/etc/supervisor/&#x4E2D;&#x65B0;&#x5EFA;tornado&#x7BA1;&#x7406;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;tornado.conf&#x3002;</p>
<pre><code>[group:tornadoes]
programs=tornado-8000,tornado-8001,tornado-8002,tornado-8003

[program:tornado-8000]
command=/home/python/.virtualenvs/tornado_py2/bin/python /home/python/Documents/demo/chat    /server.py --port=8000
directory=/home/python/Documents/demo/chat
user=python
autorestart=true
redirect_stderr=true
stdout_logfile=/home/python/tornado.log
loglevel=info

[program:tornado-8001]
command=/home/python/.virtualenvs/tornado_py2/bin/python /home/python/Documents/demo/chat    /server.py --port=8001
directory=/home/python/Documents/demo/chat
user=python
autorestart=true
redirect_stderr=true
stdout_logfile=/home/python/tornado.log
loglevel=info

[program:tornado-8002]
command=/home/python/.virtualenvs/tornado_py2/bin/python /home/python/Documents/demo/chat    /server.py --port=8002
directory=/home/python/Documents/demo/chat
user=python
autorestart=true
redirect_stderr=true
stdout_logfile=/home/python/tornado.log
loglevel=info

[program:tornado-8003]
command=/home/python/.virtualenvs/tornado_py2/bin/python /home/python/Documents/demo/chat    /server.py --port=8003
directory=/home/python/Documents/demo/chat
user=python
autorestart=true
redirect_stderr=true
stdout_logfile=/home/python/tornado.log
loglevel=info
</code></pre><h3 id="&#x542F;&#x52A8;">&#x542F;&#x52A8;</h3>
<pre><code class="lang-bash">supervisord -c /etc/supervisord.conf
</code></pre>
<p>&#x67E5;&#x770B; supervisord &#x662F;&#x5426;&#x5728;&#x8FD0;&#x884C;&#xFF1A;</p>
<pre><code class="lang-bash">ps aux | grep supervisord
</code></pre>
<h3 id="supervisorctl">supervisorctl</h3>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5229;&#x7528;supervisorctl&#x6765;&#x7BA1;&#x7406;supervisor&#x3002;</p>
<pre><code class="lang-bash">supervisorctl

&gt; status    <span class="hljs-comment"># &#x67E5;&#x770B;&#x7A0B;&#x5E8F;&#x72B6;&#x6001;</span>
&gt; stop tornadoes:*   <span class="hljs-comment"># &#x5173;&#x95ED; tornadoes&#x7EC4; &#x7A0B;&#x5E8F;</span>
&gt; start tornadoes:*  <span class="hljs-comment"># &#x542F;&#x52A8; tornadoes&#x7EC4; &#x7A0B;&#x5E8F;</span>
&gt; restart tornadoes:*    <span class="hljs-comment"># &#x91CD;&#x542F; tornadoes&#x7EC4; &#x7A0B;&#x5E8F;</span>
&gt; update    &#xFF03; &#x91CD;&#x542F;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4FEE;&#x6539;&#x8FC7;&#x7684;&#x7A0B;&#x5E8F;
</code></pre>
<p>&#x6267;&#x884C;status&#x547D;&#x4EE4;&#x65F6;&#xFF0C;&#x663E;&#x793A;&#x5982;&#x4E0B;&#x4FE1;&#x606F;&#x8BF4;&#x660E;tornado&#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x6B63;&#x5E38;&#xFF1A;</p>
<pre><code class="lang-bash">supervisor&gt; status
tornadoes:tornado-<span class="hljs-number">8000</span> RUNNING pid <span class="hljs-number">32091</span>, uptime <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">02</span>
tornadoes:tornado-<span class="hljs-number">8001</span> RUNNING pid <span class="hljs-number">32092</span>, uptime <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">02</span>
tornadoes:tornado-<span class="hljs-number">8002</span> RUNNING pid <span class="hljs-number">32093</span>, uptime <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">02</span>
tornadoes:tornado-<span class="hljs-number">8003</span> RUNNING pid <span class="hljs-number">32094</span>, uptime <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">02</span>
</code></pre>
<h2 id="2-nginx">2. nginx</h2>
<p>&#x5BF9;&#x4E8E;&#x4F7F;&#x7528;ubuntu apt-get &#x5B89;&#x88C5;nginx&#xFF0C;&#x5176;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4F4D;&#x4E8E;/etc/nginx/sites-available&#x4E2D;&#xFF0C;&#x4FEE;&#x6539;default&#x6587;&#x4EF6;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>upstream tornadoes {
    server 127.0.0.1:8000;
    server 127.0.0.1:8001;
    server 127.0.0.1:8002;
    server 127.0.0.1:8003;
}

upstream websocket {
    server 127.0.0.1:8000;
}

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;
    location /static/ {
        root /home/python/Documents/demo/chat;
        if ($query_string) {
            expires max;
        }
    }

    location /chat {
        proxy_pass http://websocket/chat;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection &quot;upgrade&quot;;
    }

    location / {
        proxy_pass_header Server;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;  # &#x534F;&#x8BAE; http https
        proxy_pass http://tornadoes;
    }
}
</code></pre><p>&#x542F;&#x52A8;nginx</p>
<pre><code class="lang-bash">service nginx start   <span class="hljs-comment"># &#x542F;&#x52A8;</span>
service nginx stop    <span class="hljs-comment"># &#x505C;&#x6B62;</span>
service nginx restart <span class="hljs-comment"># &#x91CD;&#x542F;</span>
</code></pre>
<p>&#x6E90;&#x7801;&#x5B89;&#x88C5;&#x7248;&#x672C;</p>
<pre><code class="lang-bash">&#x542F;&#x52A8;&#xFF1A;sudo sbin/nginx
&#x505C;&#x6B62;&#xFF1A;sudo sbin/nginx <span class="hljs-operator">-s</span> stop
&#x91CD;&#x542F;&#xFF1A;sudo sbin/nginx <span class="hljs-operator">-s</span> reload
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../c08/index.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 8 部署"><i class="fa fa-angle-left"></i></a>
        
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
